package com.yjhh.tilemap.utils;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * Description:
 *
 * @JDK Version:1.8.0_40
 * Version: V1.0
 * Author: spring
 * Date: 2017/8/16
 */
@Data
public class ResponseBean<T> implements Serializable {
    /**
     * 返回码
     **/
    private String respCode;

    /**
     * 描述信息
     **/
    private String respMsg;

    /**
     * 返回结果或返回结果集合
     **/
    private T dataObj;

    /**
     * 重载构造方法
     */
    public ResponseBean(String respCode, String respMsg, T dataObj) {
        this.respCode = respCode;
        this.respMsg = respMsg;
        this.dataObj = dataObj;
    }

    /**
     * 重载构造方法,不需要传信息描述，系统自动构建
     */
    public ResponseBean(String respCode, T dataObj) {
        this.respCode = respCode;
        this.dataObj = dataObj;
    }

    /**
     * 重载构造方法,不需要传信息描述，系统自动构建
     */
    public ResponseBean(String respCode, String respMsg) {
        this.respCode = respCode;
        this.respMsg = respMsg;
    }

    public ResponseBean() {
    }

}
